package com.apac.bom;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the account_requirements_tbl database table.
 * 
 */
@Entity
@Table(name="account_requirements_tbl")
public class AccountRequirement extends AbstractBOM implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ACCT_RQMT_CODE")
	private int acctRqmtCode;

	private boolean required;

	//bi-directional many-to-one association to Account
	@ManyToOne
	@JoinColumn(name="ACCT_CODE")
	private Account account;

	//bi-directional many-to-one association to Requirement
	@ManyToOne
	@JoinColumn(name="RQMT_CODE")
	private Requirement requirement;

	//bi-directional many-to-one association to EmployeeAccountRequirement
	@OneToMany(mappedBy="accountRequirements")
	private List<EmployeeAccountRequirement> employeeAccountRequirements;

	public AccountRequirement() {
	}

	public int getAcctRqmtCode() {
		return this.acctRqmtCode;
	}

	public void setAcctRqmtCode(int acctRqmtCode) {
		this.acctRqmtCode = acctRqmtCode;
	}

	public boolean getRequired() {
		return this.required;
	}

	public void setRequired(boolean required) {
		this.required = required;
	}

	public Account getAccount() {
		return this.account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public Requirement getRequirement() {
		return this.requirement;
	}

	public void setRequirement(Requirement requirement) {
		this.requirement = requirement;
	}

	public List<EmployeeAccountRequirement> getEmployeeAccountRequirements() {
		return this.employeeAccountRequirements;
	}

	public void setEmployeeAccountRequirements(List<EmployeeAccountRequirement> employeeAccountRequirements) {
		this.employeeAccountRequirements = employeeAccountRequirements;
	}

}